-- GENERATED SPELL FOR [Tagar Spinebreaker] --


function spell0_19443(pUnit, Event) --@Spine Break,n/a--
pUnit:FullCastSpellOnTarget(34108,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19443', 8318, 1)
end

function spell1_19443(pUnit, Event) --@Whirlwind Knockback,n/a--
pUnit:FullCastSpellOnTarget(34109,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19443', 546, 1)
end

function Sorts_19443(pUnit, Event)
local choix_sorts_19443 = math.random(0, 1)
if choix_sorts_19443 == 0 then
pUnit:RegisterEvent('spell0_19443', 1, 1)
end
if choix_sorts_19443 == 1 then
pUnit:RegisterEvent('spell1_19443', 1, 1)
end
end

function mob19443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19443', math.random(1500, 3000), 1)
end

function mob19443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19443, 1, 'mob19443_Action')
RegisterUnitEvent(19443, 2, 'mob19443_Leave')
RegisterUnitEvent(19443, 3, 'mob19443_Kill')
RegisterUnitEvent(19443, 4, 'mob19443_Die')
